package com.lzh.tiktok.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lzh.tiktok.user.entity.FollowEntity;
import com.lzh.tiktok.user.entity.UserEntity;
import com.lzh.tiktok.user.vo.FriendInfoResponseVo;
import com.lzh.tiktok.user.vo.UserVo;

import java.util.List;

/**
 * @author lizhihang
 * @create 2023-01-17 15:26
 */
public interface FollowService extends IService<FollowEntity> {

    //根据userId获取关注博主数量
    Integer getFollowCountByUserId(Integer userId);

    //根据userId获取粉丝数量
    Integer getFollowerByUserId(Integer userId);

    List<UserVo> getAllFollowList(String user_id, String token);

    List<UserVo> getAllFollowerList(String user_id, String token);

    //当前token用户是否关注了userId这个人
    Boolean isFollowed(Integer userId, String token);

    void doAction(String to_user_id, String loginUserId, String action_type);

    FriendInfoResponseVo getFriendList(String user_id, String token);
}
